<%@ taglib prefix="c"   uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@page import="org.apache.commons.beanutils.locale.*" %>
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet"  href="<%=request.getContextPath()%>/css/display.css" type="text/css" media="screen" />
<script src="<%=request.getContextPath()%>/js/jquery.js"></script>
<script src="<%=request.getContextPath()%>/js/autocomplete.js"></script>
<script src="<%=request.getContextPath()%>/js/form.js"></script> 
<script type="text/javascript" src='<%=request.getContextPath()%>/js/input01.js'></script>

<title>Gestione Auser - Mezzi di Accompagnamento</title>

</head>
<body> 
	 
	 <form method="post" action="save.jsp" name="formFornitori" id=""formFornitori"">
		 <c:if test="${empty param.id}" >
		 	<h1>Aggiunta di un Mezzo di Accompagnamento</h1>   
		 	<input type="hidden" name="EditMode" value="ADD" />
		 </c:if>
		 
		 <c:if test="${!empty param.id}" >
		 	<h1>Dati Mezzo di Accompagnamento</h1> 
		 	<input type="hidden" name="EditMode" value="EDIT" />
		 </c:if>
		 
		 
		<fieldset>
			<legend>Dati principali</legend>  
	
	 		<label for='descrizione'>Descrizione</label><input type="text" name="descrizione" id="descrizione" size="45" value="${editMezzi.descrizione}" /> 
	 		<label class='validError'>${eDescrizione}</label><br/>
	 		
	 		<label for='tipo'>Tipo</label>
	 			<select name="tipo" id="tipo">  
	 				<option value="Proprio" ${editMezzi.tipo=="Proprio"?"selected":""}>Mezzo Proprio</option>
	 				<option value="Auser"   ${editMezzi.tipo=="Auser"?"selected":""}>Mezzo Auser</option>
	 			</select>  <br>
	 			
	 		<label for='rimborsoKm'>Rimborso Km € </label><input class="Float" type="text" name="rimborsoKm" id="rimborsoKm"  size="29" value="<fmt:formatNumber pattern="0.00" value="${editMezzi.rimborsoKm}"  />"  /> 
	 		<label class='validError'>${eRimborsoKm}</label> <br/> 
	 		
	 		  
			<input style='float:right' class='button' type='button' value='Esci senza salvare' id='btnClose' onclick='document.location="<%=request.getContextPath()%>/app/start/index.jsp"'> 
	 		<input style='float:right' class='button' type='submit' value='Salva' id='btnSave' />		
		</fieldset>	
 
	
</body>
</html>